<template>
	<view class="content">
		<!-- <view class="title">消息标题消息标题最多显示十六字</view> -->
		<view class="list">
			<rich-text :nodes="data"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				datas:{},
				data:'',
				id:'' //公告id
			}
		},
		onLoad(options) {
			console.log(options)
			if (Object.keys(options).length != 0) {
				this.id = options.id
				this.getNoticeInfo();
			}
		},
		methods: {
			// 获取公告详情
			getNoticeInfo: function () {
				this.api.userNoticeInfo({
					id:this.id
				}).then(res => {
					console.log(res)
					this.data = res.data;
				})
			}
		}
	}
</script>

<style lang="less">
	page {
		width: 100%;
		box-sizing: border-box;
		letter-spacing: 3rpx;
		font-family: 'PingFang SC';
		background: #FFFFFF;
		padding: 20rpx 0;
	}
	.content {
		width: 100%;
		box-sizing: border-box;
	}
	.title {
		width: 100%;
		box-sizing: border-box;
		line-height: 80rpx;
		font-size: 32rpx;
		text-align: center;
	}
	.list {
		width: 100%;
		box-sizing: border-box;
		padding: 20rpx;
	}

</style>
